package com.hotel.room.mapper;

import com.hotel.user.entity.HotelRoomOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 酒店客房预订表 Mapper 接口
 * </p>
 *
 * @author trc
 * @since 2024-06-17
 */
public interface HotelRoomOrderMapper extends BaseMapper<HotelRoomOrder> {

    List<HotelRoomOrder> selectOrderById(@Param("userId")Integer userId, @Param("roomId")Integer roomId);

    List<HotelRoomOrder> selectOrderByIdType(Integer id);

    List<HotelRoomOrder> selectOrderByRoomId(Integer roomId);
}
